package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap53 extends OSMap
	{
		public function OSMap53()
		{
			super();

			var ground:OSGround = new OSGround(260, 740, 20, 160, 0, false);
			ground.setNoErosionUp([0]);
			ground.setNoErosionDown([7]);
			ground.setNoErosionLeft([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionRight([0]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(240, 960, 180, 20, 45, false);
			ground.setBorders(true, true);
			addBackground(ground);

			ground = new OSGround(260, 940, 20, 140, 0, false);
			ground.setNoErosionUp([0]);
			ground.setNoErosionDown([6]);
			ground.setNoErosionLeft([0, 1, 2, 3, 4, 5, 6]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(440, 660, 140, 40, 0, false);
			ground.setNoErosionDown([9, 10, 11, 12, 13]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(320, 800, 180, 20, -45, false);
			ground.setBorders(true, true);
			addBackground(ground);

			ground = new OSGround(480, 700, 100, 380, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4]);
			ground.setNoErosionDown([90, 91, 92, 93, 94]);
			ground.setNoErosionRight([4, 9, 14, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64, 69, 74, 79, 84, 89, 94]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(580, 640, 380, 440, 0, false);
			ground.setNoErosionDown([399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417]);
			ground.setNoErosionLeft([19, 38, 57, 76, 95, 114, 133, 152, 171, 190, 209, 228, 247, 266, 285, 304, 323, 342, 361, 380, 399]);
			ground.setNoErosionRight([18, 37, 56, 75, 94, 113, 132, 151, 170, 189, 208, 227, 246, 265, 284, 303, 322, 341, 360, 379, 398, 417]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(0, 740, 260, 340, 0, false);
			ground.setNoErosionUp([6, 7, 8, 9, 10, 11, 12]);
			ground.setNoErosionDown([208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220]);
			ground.setNoErosionLeft([0, 13, 26, 39, 52, 65, 78, 91, 104, 117, 130, 143, 156, 169, 182, 195, 208]);
			ground.setNoErosionRight([12, 25, 38, 51, 64, 77, 90, 103, 116, 129, 142, 155, 168, 181, 194, 207, 220]);
			ground.erode();
			add(ground);

			ground = new OSGround(120, 680, 160, 60, 0, false);
			ground.setNoErosionDown([16, 17, 18, 19, 20, 21, 22, 23]);
			ground.setNoErosionRight([23]);
			ground.erode();
			add(ground);

			add(new OSStall(280, 720, 20, 4, 10));

			ground = new OSGround(280, 740, 120, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

		}
	}
}
